/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gap.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Yunita
 */
@Entity
@Table(name = "gap_master_employee_status")
@XmlRootElement
//@NamedQueries({
//    @NamedQuery(name = "GapMasterEmployeeStatus.findAll", query = "SELECT g FROM GapMasterEmployeeStatus g"),
//    @NamedQuery(name = "GapMasterEmployeeStatus.findBySync", query = "SELECT g FROM GapMasterEmployeeStatus g WHERE g.sync = :sync"),
//    @NamedQuery(name = "GapMasterEmployeeStatus.findByEmployeeStatusId", query = "SELECT g FROM GapMasterEmployeeStatus g WHERE g.employeeStatusId = :employeeStatusId"),
//    @NamedQuery(name = "GapMasterEmployeeStatus.findByEmployeeStatusName", query = "SELECT g FROM GapMasterEmployeeStatus g WHERE g.employeeStatusName = :employeeStatusName")})
public class GapMasterEmployeeStatus implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "sync")
    private String sync;
    @Id
    @Basic(optional = false)
    @Column(name = "employee_status_id")
    private Integer employeeStatusId;
    @Column(name = "employee_status_name")
    private String employeeStatusName;
    @Lob
    @Column(name = "employee_status_description")
    private String employeeStatusDescription;

    public GapMasterEmployeeStatus() {
    }

    public GapMasterEmployeeStatus(Integer employeeStatusId) {
        this.employeeStatusId = employeeStatusId;
    }

    public String getSync() {
        return sync;
    }

    public void setSync(String sync) {
        this.sync = sync;
    }

    public Integer getEmployeeStatusId() {
        return employeeStatusId;
    }

    public void setEmployeeStatusId(Integer employeeStatusId) {
        this.employeeStatusId = employeeStatusId;
    }

    public String getEmployeeStatusName() {
        return employeeStatusName;
    }

    public void setEmployeeStatusName(String employeeStatusName) {
        this.employeeStatusName = employeeStatusName;
    }

    public String getEmployeeStatusDescription() {
        return employeeStatusDescription;
    }

    public void setEmployeeStatusDescription(String employeeStatusDescription) {
        this.employeeStatusDescription = employeeStatusDescription;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (employeeStatusId != null ? employeeStatusId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof GapMasterEmployeeStatus)) {
            return false;
        }
        GapMasterEmployeeStatus other = (GapMasterEmployeeStatus) object;
        if ((this.employeeStatusId == null && other.employeeStatusId != null) || (this.employeeStatusId != null && !this.employeeStatusId.equals(other.employeeStatusId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return employeeStatusName;
//        return "com.gap.entities.GapMasterEmployeeStatus[ employeeStatusId=" + employeeStatusId + " ]";
    }
    
}
